#if !defined(QMSG_TEXT_EDIT_H__)
#define QMSG_TEXT_EDIT_H__

#pragma once

#include <QObject>
#include <QTextEdit>
#include <QMap>
#include <QList>

class QMsgTextEdit  : public QTextEdit
{
	Q_OBJECT

public:
	QMsgTextEdit(QWidget*parent);
	~QMsgTextEdit();

private slots:
	void onEmotionFrameChange(int frame); // 动画改变是响应

public :
	void addEmotionUrl(int emotionNum);   // 
	void deleteAllEmotionImage();
    void addFileUrl(QString fileUrl);
    void addImageUrl(QString fileUrl);


private:
	QList<QString> listEmotionUrl;
	QMap<QMovie*, QString > emotionMap;

};


#endif // QMSG_TEXT_EDIT_H__
